/**
 * 
 * See <a href="http://www.mkyong.com/spring/maven-spring-hibernate-mysql-example/">
 * Maven + Spring + Hibernate + MySql Example</a>
 * 
 * @author Andrew Bell
 * 
 */
package com.recursivechaos.examples.mavsprhib.stock.bo.impl;

import com.recursivechaos.examples.mavsprhib.stock.bo.StockBo;
import com.recursivechaos.examples.mavsprhib.stock.dao.StockDao;
import com.recursivechaos.examples.mavsprhib.stock.model.Stock;
 
public class StockBoImpl implements StockBo{
 
	StockDao stockDao;
 
	public void setStockDao(StockDao stockDao) {
		this.stockDao = stockDao;
	}
 
	public void save(Stock stock){
		stockDao.save(stock);
	}
 
	public void update(Stock stock){
		stockDao.update(stock);
	}
 
	public void delete(Stock stock){
		stockDao.delete(stock);
	}
 
	public Stock findByStockCode(String stockCode){
		return stockDao.findByStockCode(stockCode);
	}
}
